﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            Yp yp = new Yp("金士顿","Yp");
            yp.read();
            yp.write();

            Up up = new Up("三星","up");
            up.read();
            up.write();

            Console.WriteLine();

            computer computer = new computer("华硕");
            computer.start();
            computer.Usb1 = yp;
            computer.Usb2 = up;
            computer.readdate();
            computer.writedate();
            computer.end();
        }
    }
}
